<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="chaoge.js"></script>
</head>
<body>
    <script>
        $.get('https://autumnfish.cn/api/joke/', function () {
            console.log(this.response);
            console.log('\n\n');
        })

        $.get({
            url: 'https://autumnfish.cn/api/joke/',
            success: function () {
                console.log(this.response);
                console.log('\n\n');
            }
        })


        $.get('https://autumnfish.cn/api/joke/list', 'num=5', function () {
            console.log(this.response);
            console.log('\n\n');
        })
        $.get({
            url: 'https://autumnfish.cn/api/joke/list',
            data: 'num=5',
            success: function () {
                console.log(this.response);
                console.log('\n\n');
            }
        })
        $.get('https://autumnfish.cn/api/joke/list', { num: 5 }, function () {
            console.log(this.response);
            console.log('\n\n');
        })
        $.get({
            url: 'https://autumnfish.cn/api/joke/list',
            data: { num: 5 },
            success: function () {
                console.log(this.response);
            }
        })



        cg.post('http://127.0.0.1:8000/delay', function () {
            console.log(this.response);
        })
        cg.post({
            url: 'http://127.0.0.1:8000/delay',
            data: '',
            success: function () {
                console.log(this.response);
            }
        })

        cg.post('https://autumnfish.cn/api/user/check', 'username=99887766', function () {
            console.log(this.response);
        })
        cg.post({
            url: 'https://autumnfish.cn/api/user/check',
            data: 'username=99887766',
            success: function () {
                console.log(this.response);
            }
        })

        cg.post('http://www.tuling123.com/openapi/api', { key: '932f61cbc52b46a4bccc6e166a210c5b', info: '晚上有空嘛' }, function () {
            console.log(this.response);
        })
        cg.post({
            url: 'http://www.tuling123.com/openapi/api',
            data: { key: '932f61cbc52b46a4bccc6e166a210c5b', info: '晚上有空嘛' },
            success: function () {
                console.log(this.response);
            }
        })

        $.ajax({
            type: 'post',
            url: 'http://www.tuling123.com/openapi/api',
            data: { key: '932f61cbc52b46a4bccc6e166a210c5b', info: '晚上有空嘛' },
            success: function () {
                console.log(this.response);
            }
        })

        $.ajax({
            type: 'get',
            url: 'https://autumnfish.cn/api/joke/list',
            data: { num: 5 },
            success: function () {
                console.log(this.response);
            }
        })
    </script>
</body>
</html>